
<%@ page import="com.congregacao.Congregacao"%>
<!doctype html>
<html>
<head>
<meta name="layout" content="main">
<g:set var="entityName"
	value="${message(code: 'congregacao.label', default: 'Congregacao')}" />
<title>
	<g:message code="default.show.label" args="[entityName]" />
</title>
</head>
<body>
	<a href="#show-congregacao" class="skip" tabindex="-1">
		<g:message code="default.link.skip.label"
			default="Skip to content&hellip;" />
	</a>
	<div class="nav" role="navigation">
		<ul>
			<li>
				<g:link class="list" action="list">
					<g:message code="default.list.label" args="[entityName]" />
				</g:link>
			</li>
			<li>
				<g:link class="create" action="create">
					<g:message code="default.new.label" args="[entityName]" />
				</g:link>
			</li>
		</ul>
	</div>
	<div id="show-congregacao" class="content scaffold-show" role="main">
		<h1>
			<g:message code="default.show.label" args="[entityName]" />
		</h1>
		<g:if test="${flash.message}">
			<div class="message" role="status">
				${flash.message}
			</div>
		</g:if>
		<ol class="property-list congregacao">

			<g:if test="${congregacaoInstance?.nome}">
				<li class="fieldcontain">
					<span id="nome-label" class="property-label">
						<g:message code="congregacao.nome.label" default="Nome:" />
					</span>
					<span class="property-value" aria-labelledby="nome-label">
						<g:fieldValue bean="${congregacaoInstance}" field="nome" />
					</span>
				</li>
			</g:if>

			<g:if test="${congregacaoInstance?.endereco}">
				<g:render template="/endereco/showCongregacao"></g:render>
			</g:if>


			<g:if test="${congregacaoInstance?.membros}">
				<li class="fieldcontain">
					<span id="membros-label" class="property-label">
						<g:message code="congregacao.membros.label" default="Membros:" />
					</span>
					<g:each in="${congregacaoInstance.membros}" var="m">
						<span class="property-value" aria-labelledby="membros-label">
							<g:link controller="membro" action="show" id="${m.id}">
								${m?.encodeAsHTML()}
							</g:link>
						</span>
					</g:each>
				</li>
			</g:if>

		</ol>
		<g:form>
			<fieldset class="buttons">
				<g:hiddenField name="id" value="${congregacaoInstance?.id}" />
				<g:link class="edit" action="edit" id="${congregacaoInstance?.id}">
					<g:message code="default.button.edit.label" default="Edit" />
				</g:link>
				<g:actionSubmit class="delete" action="delete"
					value="${message(code: 'default.button.delete.label', default: 'Delete')}"
					onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
			</fieldset>
		</g:form>
	</div>
</body>
</html>
